package net.j4love.sjdbc.entity;

import java.util.Date;

/**
 * @author he peng
 * @create 2017/9/13 15:28
 * @see
 */
public class Order {

    private Long id;
    private Long userId;
    private Long itemId;
    private Date createTime;
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public Order setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public Order setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public Long getItemId() {
        return itemId;
    }

    public Order setItemId(Long itemId) {
        this.itemId = itemId;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Order setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public Order setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId=" + userId +
                ", itemId=" + itemId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
